// cnpm i express axios
const express = require("express");
const axios = require("axios");
const app = express();
app.use(express.static(__dirname));
app.get("/maoyan",async (req,res)=>{
	const siteUrl = "https://i.maoyan.com/api/mmdb/movie/v3/list/hot.json?ct=邯郸&ci=123&channelId=4";
	const {data:{data}} = await axios.get(siteUrl)
	res.json(data);
})
app.listen(80,()=>{
	console.log("success");
})